Machine Translation
Instructions
This project requires GPU acceleration to run efficiently. Please refer to the instructions below to complete the project.
Option 1: Udacity Workspaces with GPU Support (Highly Recommended)
Open the NLP Machine Translation Workspace lesson and complete the project.
Option 2: AWS EC2 (Recommended - but more difficult than Workspaces)
Follow the Udacity instructions to launch an EC2 GPU instance . All of the remaining instructions should be executed in the EC2 instance.
Clone the project GitHub repository, and navigate to the downloaded folder:
git clone https://github.com/udacity/aind2-nlp-capstone
cd aind2-nlp-capstone
Start Jupyter:
jupyter notebook --ip=0.0.0.0 --no-browser
Look at the output in the window, and find the line that looks like the following:
Copy/paste this URL into your browser when you connect for the first time to login with a token:
http://0.0.0.0:8888/?token=3156e...
Copy and paste the complete URL into the address bar of a web browser (Firefox, Safari, Chrome, etc). Before navigating to the URL, replace
0.0.0.0
in the URL with the "IPv4 Public IP" address from the EC2 Dashboard. Press Enter.Click on machine_translation.ipynb. Follow the instructions in the notebook.
Option 3: Running on your Local Machine (NOT Recommended)
- Clone the repository, and navigate to the downloaded folder.
git clone https://github.com/udacity/aind2-nlp-capstone
cd aind2-nlp-capstone
- Create (and activate) a new environment with Python 3.5 and the
numpy
package.
conda create --name aind-nlp-capstone python=3.5 numpy
source activate aind-nlp-capstone
- Install/Update TensorFlow.
pip install tensorflow==1.1 -U
- Install/Update Keras.
pip install keras -U
- Switch Keras backend to TensorFlow.
KERAS_BACKEND=tensorflow python -c "from keras import backend"
- Start Jupyter:
jupyter notebook --no-browser
- Look at the output in the window, and find the line that looks like the following:
Copy/paste this URL into your browser when you connect for the first time to login with a token:
http://0.0.0.0:8888/?token=3156e...
Copy and paste the complete URL into the address bar of a web browser (Firefox, Safari, Chrome, etc). Press Enter.
Click on machine_translation.ipynb. Follow the instructions in the notebook.
Submission
Follow the instructions in the notebook to submit your project.